package com.lianshou;


public class TestPhone {
    public static void main(String[] args) {
        //1.创建对象
        Phone p = new Phone();

        //2.给成员变量进行赋值
        p.brand = "大米";
        p.price = 2999;
        //3.调用成员方法
        p.sendMessage();

        //1创建对象
        Phone p1 = new Phone();
        //2.给成员变量赋值
        p1.brand = "华为";
        p1.price = 3999;

        p1.sendMessage();

    }
}
